package com.ruoyi.position.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.position.domain.JzssHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.position.mapper.JzssMapper;
import com.ruoyi.position.domain.Jzss;
import com.ruoyi.position.service.IJzssService;

/**
 * 人员定位-基站实时数据Service业务层处理
 * 
 * @author hcc
 * @date 2024-11-08
 */
@Service
public class JzssServiceImpl extends ServiceImpl<JzssMapper, Jzss> implements IJzssService //修改
{
    @Autowired
    private JzssMapper jzssMapper;

    /**
     * 查询人员定位-基站实时数据
     * 
     * @param personSubstatonId 人员定位-基站实时数据主键
     * @return 人员定位-基站实时数据
     */
    @Override
    public Jzss selectJzssByPersonSubstatonId(String personSubstatonId)
    {
        return jzssMapper.selectJzssByPersonSubstatonId(personSubstatonId);
    }

    /**
     * 查询人员定位-基站实时数据列表
     * 
     * @param jzss 人员定位-基站实时数据
     * @return 人员定位-基站实时数据
     */
    @Override
    public List<Jzss> selectJzssList(Jzss jzss)
    {
        return jzssMapper.selectJzssList(jzss);
    }

    /**
     * 新增人员定位-基站实时数据
     * 
     * @param jzss 人员定位-基站实时数据
     * @return 结果
     */
    @Override
    public int insertJzss(Jzss jzss)
    {
        return jzssMapper.insertJzss(jzss);
    }

    /**
     * 修改人员定位-基站实时数据
     * 
     * @param jzss 人员定位-基站实时数据
     * @return 结果
     */
    @Override
    public int updateJzss(Jzss jzss)
    {
        return jzssMapper.updateJzss(jzss);
    }

    /**
     * 批量删除人员定位-基站实时数据
     * 
     * @param personSubstatonIds 需要删除的人员定位-基站实时数据主键
     * @return 结果
     */
    @Override
    public int deleteJzssByPersonSubstatonIds(String[] personSubstatonIds)
    {
        return jzssMapper.deleteJzssByPersonSubstatonIds(personSubstatonIds);
    }

    /**
     * 删除人员定位-基站实时数据信息
     * 
     * @param personSubstatonId 人员定位-基站实时数据主键
     * @return 结果
     */
    @Override
    public int deleteJzssByPersonSubstatonId(String personSubstatonId)
    {
        return jzssMapper.deleteJzssByPersonSubstatonId(personSubstatonId);
    }

    @Override
    public Jzss selectJzssByPersonSubstatonCode(String positionSubstationCode) {
        return jzssMapper.selectJzssByPersonSubstatonCode(positionSubstationCode);
    }
}
